Disable arm-specific codepaths
authorDebian Rust Maintainers <pkg-rust-maintainers@alioth-lists.debian.net>
Thu, 24 Apr 2025 19:36:28 +0000 (19:36 +0000)
committerPeter Michael Green <plugwash@raspbian.org>
Thu, 24 Apr 2025 19:36:28 +0000 (19:36 +0000)
commit68515f207e7a7e70e9421d9e8bee43a79edfe6fd
treeec03f09ada374d38e05d217125c7145fd7f23098
parente2bcd52a7bd975e6624cda0bbf7717a89c732ec5
Disable arm-specific codepaths

they cause the resulting code to come out with armv7 markers, which is
a problem given the way rust applications are statically linked.
 Changes in src and tests were made with the commands

 for file in `find src -name '*.rs'` ; do sed -i 's/target_arch = "arm"/target_arch = "armxxx"/g' $file ; done
 for file in `find tests -name '*.rs'` ; do sed -i 's/target_arch = "arm"/target_arch = "armxxx"/g' $file ; done

 Other changes were made manually.

Author: Peter Michael Green <plugwash@raspbian.org>

Gbp-Pq: Name disable-arm-specific-codepaths.patch
27 files changed:
Cargo.lock
build.rs
include/ring-core/target.h
src/aead/aes.rs
src/aead/aes/bs.rs
src/aead/aes/ffi.rs
src/aead/aes/vp.rs
src/aead/aes_gcm.rs
src/aead/chacha.rs
src/aead/gcm/ffi.rs
src/aead/gcm/neon.rs
src/aead/overlapping/base.rs
src/aead/poly1305.rs
src/aead/poly1305/ffi_arm_neon.rs
src/arithmetic/montgomery.rs
src/cpu.rs
src/cpu/arm.rs
src/cpu/arm/linux.rs
src/digest/sha2/fallback.rs
src/digest/sha2/mod.rs
src/digest/sha2/sha2_32.rs
src/digest/sha2/sha2_64.rs
src/ec/curve25519/x25519.rs
src/lib.rs
src/polyfill.rs
src/polyfill/slice/as_chunks.rs
src/prefixed.rs